<?php

namespace app\store\validate;

use think\Validate;

class BannerValidate extends Validate
{
    protected $rule = [
        'sort' => 'require|integer',
        'name' => 'require|max:100',
        'type' => 'require|integer',
        'image' => 'require|max:255',
        'param' => 'require|max:100',
    ];


    protected $message = [
        'sort.require' => '排序不能为空',
        'type.require' => '非法请求',
        'name.require' => '请输入轮播名称!',
        'image' => '非法图片!',
        'param.require' => '请选择链接',
    ];
}